.class Lcom/wmr/order/OrderDetFrameActivity$14;
.super Ljava/lang/Thread;
.source "OrderDetFrameActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/OrderDetFrameActivity;->getorder()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/OrderDetFrameActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/OrderDetFrameActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    .line 995
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 13

    .prologue
    .line 997
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 998
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    .line 999
    const-string v11, "userInfo"

    const/4 v12, 0x0

    .line 998
    invoke-virtual {v10, v11, v12}, Lcom/wmr/order/OrderDetFrameActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 1000
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v10, "uid"

    const-string v11, ""

    invoke-interface {v4, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 1001
    .local v8, "uid":Ljava/lang/String;
    const-string v10, "pass"

    const-string v11, ""

    invoke-interface {v4, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 1002
    .local v5, "pwd":Ljava/lang/String;
    new-instance v10, Ljava/lang/StringBuilder;

    iget-object v11, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    iget-object v11, v11, Lcom/wmr/order/OrderDetFrameActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v11}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, "/index.php?ctrl=app&action=ordersharejuan&orderid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    # getter for: Lcom/wmr/order/OrderDetFrameActivity;->orderid:Ljava/lang/String;
    invoke-static {v11}, Lcom/wmr/order/OrderDetFrameActivity;->access$22(Lcom/wmr/order/OrderDetFrameActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&uid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&pwd="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&datatype=json"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 1005
    .local v9, "url":Ljava/lang/String;
    const-string v10, "Loginactivity"

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "login() "

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1006
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    iget-object v10, v10, Lcom/wmr/order/OrderDetFrameActivity;->m:Lmyapp/MyApp;

    invoke-static {v9, v10}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 1007
    .local v7, "str":Ljava/lang/String;
    const-string v10, "Loginactivity"

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "data() "

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1010
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 1013
    .local v3, "msg":Landroid/os/Message;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1014
    .local v1, "json":Lorg/json/JSONObject;
    const-string v10, "error"

    invoke-virtual {v1, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "true"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_0

    .line 1044
    .end local v1    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 1022
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v10, "msg"

    invoke-virtual {v1, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, ""

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 1024
    const/16 v10, 0x15

    iput v10, v3, Landroid/os/Message;->arg1:I

    .line 1025
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    iget-object v10, v10, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1036
    .end local v1    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 1038
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 1039
    const/4 v10, 0x4

    iput v10, v3, Landroid/os/Message;->arg1:I

    .line 1041
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    iget-object v10, v10, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 1028
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v10, "msg"

    invoke-virtual {v1, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 1029
    .local v2, "json1":Lorg/json/JSONObject;
    const-string v10, "shareinfo"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v6

    .line 1030
    .local v6, "shareinfo":Lorg/json/JSONObject;
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    const-string v11, "title"

    invoke-virtual {v6, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lcom/wmr/order/OrderDetFrameActivity;->access$24(Lcom/wmr/order/OrderDetFrameActivity;Ljava/lang/String;)V

    .line 1031
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    const-string v11, "img"

    invoke-virtual {v6, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lcom/wmr/order/OrderDetFrameActivity;->access$25(Lcom/wmr/order/OrderDetFrameActivity;Ljava/lang/String;)V

    .line 1032
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    const-string v11, "describe"

    invoke-virtual {v6, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lcom/wmr/order/OrderDetFrameActivity;->access$26(Lcom/wmr/order/OrderDetFrameActivity;Ljava/lang/String;)V

    .line 1033
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    const-string v11, "link"

    invoke-virtual {v6, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Lcom/wmr/order/OrderDetFrameActivity;->access$27(Lcom/wmr/order/OrderDetFrameActivity;Ljava/lang/String;)V

    .line 1034
    const/16 v10, 0xb

    iput v10, v3, Landroid/os/Message;->arg1:I

    .line 1035
    iget-object v10, p0, Lcom/wmr/order/OrderDetFrameActivity$14;->this$0:Lcom/wmr/order/OrderDetFrameActivity;

    iget-object v10, v10, Lcom/wmr/order/OrderDetFrameActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1049
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1050
    monitor-exit p0

    return-void

    .line 1049
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
